#include <map>
#include <iostream>
#include <string>
#include <iostream>
#include <stdlib.h>
#include "comando.h"

#ifndef CMDGOTO_H
#define CMDGOTO_H

using namespace std;
class Cmd_Goto : public Comando {
	private:
		string label;
		int linha_label;
	public:
		Cmd_Goto (map<string,string> *memoria, int pc, string label) : Comando (memoria, pc) {
			this->label=label;
		}
		virtual int executar() {
			return linha_label;
		}
		string get_label() {
			return label;
		}
		void set_linha_label(int linha_label) {
			this->linha_label=linha_label;
		}
};
#endif
